package com.example.order.controller.admin;



import com.example.order.pojo.Orders;
import com.example.order.pojo.vo.OrdersVO;
import com.example.order.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


@RequestMapping("/admin/order")
@RestController
@Slf4j
public class OrderController {

    @Resource
    private OrderService OrderService;



    @GetMapping("/{id}")
    public OrdersVO getOrder(@PathVariable Long id,@RequestHeader(value = "Truth", required = false) String truth){
        System.out.println(truth);
       return OrderService.getOrder(id);
    }

}
